package com.example.li.day9_27.utils;

import com.example.li.day9_27.pojo.RequestData;
import com.example.li.day9_27.pojo.User;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface RequestService {

    @POST("login")
    @FormUrlEncoded
//表示需要提交 Form表单数据(POST键值对)
    Observable<RequestData<User>> login(@Field("userName") String userName, @Field("psw") String psw);

}
